﻿@using Downloader.Web.Controllers.Admin
@model Downloader.Web.Controllers.ViewModels.ArticleContentViewModel
@using (Html.BeginForm("SaveOrUpdate", "Article", FormMethod.Post, new { id = "articleForm" }))
{
    @Html.HiddenFor(c => c.Id)
    <table id="Atitle" cellspacing="0" cellpadding="0" style="padding: 0px; margin: 0px; width: 100%;">
        <tbody>
        <tr class="color3">
            <td width="20%">
                <p style="align-content:center;padding: 0"><b>标题</b></p>
            </td>
            <td>
                <p style="align-content:center;padding: 0">
                    @Html.TextBoxFor(c => c.Title)
                </p>
            </td>
            <td width="20%">
                <p style="align-content:center;padding: 0"><b>子标题</b></p>
            </td>
            <td>
                <p style="align-content:center;padding: 0">
                    @Html.TextBoxFor(c => c.SubTitle)
                </p>
            </td>
        </tr>
          
        <tr class="color3">
            <td width="20%">
                <p style="align-content:center;padding: 0"><b>关键字</b></p>
            </td>
            <td>
                <p style="align-content:center;padding: 0">
                    @Html.TextBoxFor(c => c.KeyWords)
                </p>
            </td>
            <td width="20%">
                <p style="align-content:center;padding: 0"><b>分类</b></p>
            </td>
            <td>
                <p style="align-content:center;padding: 0">
                    @Html.DropDownListFor(c => c.Category, (SelectList)ViewBag.CarCategory, new { @name = "Category.Id" })
                </p>
            </td>
        </tr>
        <tr class="color3">
            <td width="20%">
                <p style="align-content:center;padding: 0"><b>URL</b></p>
            </td>
            <td colspan="3">
                <p style="align-content:center;padding: 0;float: left">
                    @Html.TextBoxFor(c => c.Url)
                </p><p>.html
            </td>
               
        </tr>
            </tbody>
    </table>
    <table cellspacing="0" cellpadding="0" style="padding: 0px; margin: 0px; width: 100%;height: 80%">
        <tbody>
                    <tr class="color3"><td colspan="4"><div id="HideOrShow" style="align-content:center;text-align: center">隐藏</div></td></tr>

            <tr class="color3">
                <td colspan="4">
                    <p style="align-content:center;padding: 0"><b>· 内容</b></p>
                </td>
            </tr>
            <tr class="color3">
                <td colspan="4">
                    @Html.TextAreaFor(c => c.ContentText, new { @style = "width:100%;height:240px;visibility:hidden;" })
                </td>
            </tr>
        </tbody>
    </table>@*
    @*<div>
        标题：@Html.TextBoxFor(c => c.Title)
    </div>
    <div>
        子标题：@Html.TextBoxFor(c => c.SubTitle)
    </div>
    <div>
        关键字：@Html.TextBoxFor(c => c.KeyWords)
    </div>
    <div>
        分类：@Html.DropDownListFor(c => c.Category, (SelectList)ViewBag.CarCategory, new { @name = "Category.Id" })
    </div>
    <div>
        内容：
            @Html.TextAreaFor(c => c.ContentText, new { @style = "width:800px;height:400px;visibility:hidden;" })
    </div>*@
    
    
}